import request from './request.js';


//登录
export function login(params){
	return request.post2(`/Account/LoginByAPP`, params, false).then(res => res.data)
}

//首页top数据
export function GetTaskIndex(params){
	return request.post(`/MobileExecutiveEnd/GetTaskIndex`, params).then(res => res.data)
}

//获取公告列表
export function GetNoticeList(params){
	return request.post(`/MobileManagementSide/GetNoticeList`, params).then(res => res.data)
}

//获取任务列表
export function GetTaskList(params){
	return request.post(`/MobileExecutiveEnd/GetTaskList`, params).then(res => res.data)
}

//获取检查内容
export function GetTaskInfo(params){
	return request.post(`/MobileExecutiveEnd/GetTaskInfo`, params).then(res => res.data)
}

//提交检查
export function SubTaskTo(params){
	return request.post(`/MobileExecutiveEnd/SubTaskTo`, params).then(res => res.data)
}

//管路员任务中心：状态-数量
export function GetWorkOrderStatus(params){
	return request.post(`/MobileManagementSide/GetWorkOrderStatus`, params).then(res => res.data)
}

//获取任务中心代办事项
export function GetTodoTask(params){
	return request.post(`/MobileManagementSide/GetTodoTask`, params).then(res => res.data)
}

//获取异常反馈汇总
export function GetExceptionList(params){
	return request.post(`/MobileManagementSide/GetExceptionList`, params).then(res => res.data)
}

//获取异常反馈汇总
export function GetExceptionDetail(params){
	return request.post(`/MobileManagementSide/GetExceptionDetail`, params).then(res => res.data)
}

//修复异常反馈
export function ExceptionRepair(params){
	return request.post(`/MobileManagementSide/ExceptionRepair`, params).then(res => res.data)
}

//整改异常反馈
export function ExceptionRectification(params){
	return request.post(`/MobileManagementSide/ExceptionRectification`, params).then(res => res.data)
}

//答复并关闭该项异常
export function ExceptionClose(params){
	return request.post(`/MobileManagementSide/ExceptionClose`, params).then(res => res.data)
}


//获取公告详情
export function GetNoticeDetail(params){
	return request.post(`/MobileManagementSide/GetNoticeDetail`, params).then(res => res.data)
}

//确认公告
export function AffirmNotice(params){
	return request.post(`/MobileManagementSide/AffirmNotice`, params).then(res => res.data)
}

//人员类别列表
export function getUserTypeList(params){
	return request.post(`/MobileManagementSide/GetRole`, params).then(res => res.data)
}

//发布公告
export function releaseNotice(params){
	return request.post(`/MobileManagementSide/AddNotice`, params).then(res => res.data)
}


//自动登录
export function automaticLogon(params){
	return request.post2(`/Account/LoginByAPPOpenid`, params,false).then(res => res.data)
}

//获取openId
export function getOpenId(params){
	return request.post3(`/Account/GetCode`, params,false).then(res => res.data)
}


//退出登录
export function loginOut(params){
	return request.post2(`/Account/LoginOutByAPP`, params).then(res => res.data)
}

//提交随手报
export function SubFhnTo(params){
	return request.post(`/MobileExecutiveEnd/SubFhnTo`, params).then(res => res.data)
}



